package com.yzd.learnjava.io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.List;

import com.yzd.learnjava.util.Print;

public class RecoverCADState {
	public static void main(String[] args) throws Exception, IOException {
		ObjectInputStream inputStream = new ObjectInputStream(new FileInputStream("CADState.out"));
		List<Class<? extends Shape>> shapeTypes = (List<Class<? extends Shape>>)inputStream.readObject();
		Line.deserialzeStaticState(inputStream);
		List<Shape> shapes = (List<Shape>)inputStream.readObject();
		Print.print(shapes);
		
	}
}	
